<?php
// +----------------------------------------------------------------------
// | 幕小铺
// +----------------------------------------------------------------------
// | 版权所有 2016~2020 幕小铺科技（大连）有限公司 LTAI4FnGpU2MQbYXaHu1gTiu SwySLMEDDs5r3J5mqyvregWn5BHgOd
// +----------------------------------------------------------------------
// | 2020/03/14
// +----------------------------------------------------------------------

namespace app\user_center\validate\admin;

use think\Validate;

/**
 * MCN机构 验证器
 * @package app\admin\validate
 * @author jason wang <120907037@qq.com>
 */
class Attestation extends Validate
{
    protected $rule = [
        'attestation_name'   =>  'chsDash|require|length:1,100', //
        'mobile'      		 =>  'require|mobile',  //
    ];

    protected $message  =   [
        'attestation_name'   	=> '机构名称错误',
		'mobile'      		    => '手机格式错误',
    ];

    //验证场景
    protected $scene = [
        					'add'    =>  [//添加艺人
														'attestation_name',
														'mobile',
													 ],
               			];
}
